home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / oops / r3widget.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  27.6 KB  |  935 lines

  1.  
  2. // JavaScript wrapper for r3widget.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_WIDGET_H = 1;
  7. include("oops/r3root.js")
  8.  
  9.  
  10. var R3CLID_WIDGET = 41;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Refresh widget
  16.  
  17. R3WGM_REFRESH = 41000;
  18.  
  19. function mR3WGM_REFRESH() {
  20.   DoA(this.r3obj, 41000, 0, R3TID_INTEGER, 0);
  21. }
  22.  
  23. // Description: Ask widget to map all of its events to another object.
  24. // Returns: Boolean, TRUE if succeeded
  25. // p3: Tag[], see tags for mapchanges below
  26.  
  27. R3WGM_MAPCHANGES = 41001;
  28.  
  29. function mR3WGM_MAPCHANGES(p3) {
  30.   return   Do(this.r3obj, 41001, p3, R3TID_TAG, R3TNF_ARRAY);
  31. }
  32.  
  33. // Description: Don't map changes after this
  34. // Returns: Boolean, TRUE if succeeded
  35. // p3: Tag[], same tags as in the corresponding MAPCHANGES call
  36.  
  37. R3WGM_UNMAPCHANGES = 41002;
  38.  
  39. function mR3WGM_UNMAPCHANGES(p3) {
  40.   return   Do(this.r3obj, 41002, p3, R3TID_TAG, R3TNF_ARRAY);
  41. }
  42.  
  43. // Description: This method asks widget to map a specific method to other objects registered for
  44. //      the widget using MAPCHANGES method.
  45. // p1: Integer, code which will be passed to mapping targets in p1
  46. // p2: Integer, map type, either R3WGMAPTYPE_VALUE or R3WGMAPTYPE_EVENT
  47. // p3: Object, data passed to mapping targets in p3.
  48.  
  49. R3WGM_DOMAP = 41003;
  50.  
  51. function mR3WGM_DOMAP(p1, p2, p3) {
  52.   DoA3(this.r3obj, 41003, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
  53. }
  54.  
  55. // Description: Add sub widget. This method is defined by the widget base class but it
  56. //      is actually up to sub classes to implement it. Not all widgets accept sub widgets.
  57. // Returns: Boolean, true if succeeded
  58. // p3: Object, sub widget to be added.    
  59.  
  60. R3WGM_ADDCHILDREN = 41004;
  61.  
  62. function mR3WGM_ADDCHILDREN(p3) {
  63.   return   DoA(this.r3obj, 41004, p3, R3TID_OBJECT, 0);
  64. }
  65.  
  66. // Description: Remove sub widget. These are defined by the widget base class but it is
  67. //      actually up to sub classes to implement these methods. Not all widgets accept sub widgets.
  68. // Returns: Boolean, true
  69. // p3: Object, sub widget to be removed.
  70.  
  71. R3WGM_REMCHILDREN = 41005;
  72.  
  73. function mR3WGM_REMCHILDREN(p3) {
  74.   return   DoA(this.r3obj, 41005, p3, R3TID_OBJECT, 0);
  75. }
  76.  
  77. // Description: Realize all widgets.
  78.  
  79. R3WGM_REALIZE = 41006;
  80.  
  81. function mR3WGM_REALIZE() {
  82.   DoA(this.r3obj, 41006, 0, R3TID_INTEGER, 0);
  83. }
  84.  
  85. // Description: Converts window coordinates to screen coordinates
  86.  
  87. R3WGM_WINDOWTOSCREEN = 41008;
  88.  
  89. function mR3WGM_WINDOWTOSCREEN() {
  90.   DoA(this.r3obj, 41008, 0, R3TID_INTEGER, 0);
  91. }
  92.  
  93. // Description: Converts screen coordinates to window coordinates
  94.  
  95. R3WGM_SCREENTOWINDOW = 41009;
  96.  
  97. function mR3WGM_SCREENTOWINDOW() {
  98.   DoA(this.r3obj, 41009, 0, R3TID_INTEGER, 0);
  99. }
  100.  
  101. // Description: Compute new size for the widget. This method should be called whenever size of
  102. //      one of the childrens has changed.
  103. // p3: Integer, see parameter codes below
  104.  
  105. R3WGM_FIT = 41010;
  106.  
  107. function mR3WGM_FIT(p3) {
  108.   DoA(this.r3obj, 41010, p3, R3TID_INTEGER, 0);
  109. }
  110.  
  111. // Description: sets the keyboard focus to the widget
  112. // Virtual method
  113.  
  114. R3WGM_SETFOCUS = 41011;
  115.  
  116. function mR3WGM_SETFOCUS() {
  117.   DoA(this.r3obj, 41011, 0, R3TID_INTEGER, 0);
  118. }
  119.  
  120. // Description: sets the keyboard focus to the widget that had it before previous R3WGM_SETFOCUS
  121. // Virtual method
  122.  
  123. R3WGM_RESTOREFOCUS = 41012;
  124.  
  125. function mR3WGM_RESTOREFOCUS() {
  126.   DoA(this.r3obj, 41012, 0, R3TID_INTEGER, 0);
  127. }
  128.  
  129.  
  130. R3WGM_PASSEVENTUP = 41013;
  131.  
  132. function mR3WGM_PASSEVENTUP() {
  133.   DoA(this.r3obj, 41013, 0, R3TID_INTEGER, 0);
  134. }
  135.  
  136. // Description: Sent to drag source widget when dragging is started.
  137. // Returns: Object, whatever drag source specific data. This data should be passed to DRAGDROP and CANDROP
  138. //      methods in 'p1' field.
  139.  
  140. R3WGM_DRAGSTART = 41014;
  141.  
  142. function mR3WGM_DRAGSTART() {
  143.   return   DoA(this.r3obj, 41014, 0, R3TID_INTEGER, 0);
  144. }
  145.  
  146. // Description: Sent to 'drop target' widget when the user 'drops' the object.    * Widget class sends
  147. //      the actual drop method registered by the R3WGA_DropMth attribute    * to the object registered by the
  148. //      R3WGA_DropTargetObj attribute.
  149. // Returns: Boolean, if true, the dropped data was succesfully handled. If FALSE, the widget class deletes
  150. //      the object from the 'drag&drop' buffer.
  151. // p1: Object, object to be dropped
  152.  
  153. R3WGM_DRAGDROP = 41015;
  154.  
  155. function mR3WGM_DRAGDROP(p1) {
  156.   return   DoA2(this.r3obj, 41015, p1, R3TID_OBJECT, 0, 0, R3TID_INTEGER, 0);
  157. }
  158.  
  159. // Description: Sent to drop target to query if it recognizes the object to be dropped.    *
  160. //      Widget class sends the actual candrop method registered by the R3WGA_CanDropMth attribute    * to the object
  161. //      registered by the R3WGA_DropTargetObj attribute.
  162. // Returns: Boolean, TRUE if drop target can handle the given object
  163. // p1: Object, object to be dropped
  164.  
  165. R3WGM_CANDROP = 41016;
  166.  
  167. function mR3WGM_CANDROP(p1) {
  168.   return   DoA2(this.r3obj, 41016, p1, R3TID_OBJECT, 0, 0, R3TID_INTEGER, 0);
  169. }
  170.  
  171. // Description: Send to 'drag source' when drag&drop finished
  172.  
  173. R3WGM_DRAGEND = 41017;
  174.  
  175. function mR3WGM_DRAGEND() {
  176.   DoA(this.r3obj, 41017, 0, R3TID_INTEGER, 0);
  177. }
  178.  
  179. // Description: Send to 'drag source' when drag&drop cancelled.
  180.  
  181. R3WGM_DRAGCANCEL = 41018;
  182.  
  183. function mR3WGM_DRAGCANCEL() {
  184.   DoA(this.r3obj, 41018, 0, R3TID_INTEGER, 0);
  185. }
  186.  
  187. // Description: Detach widget from parent. Sent when a widget wants to delete itself.
  188.  
  189. R3WGM_DETACH = 41019;
  190.  
  191. function mR3WGM_DETACH() {
  192.   DoA(this.r3obj, 41019, 0, R3TID_INTEGER, 0);
  193. }
  194.  
  195. // Description: Moves the widget on top of its siblings.
  196.  
  197. R3WGM_MOVETOFRONT = 41020;
  198.  
  199. function mR3WGM_MOVETOFRONT() {
  200.   DoA(this.r3obj, 41020, 0, R3TID_INTEGER, 0);
  201. }
  202.  
  203. // Description: Moves the widget below its siblings.
  204.  
  205. R3WGM_MOVETOBACK = 41021;
  206.  
  207. function mR3WGM_MOVETOBACK() {
  208.   DoA(this.r3obj, 41021, 0, R3TID_INTEGER, 0);
  209. }
  210.  
  211. // Description: Construct a name which identifies the widget. The constructed string is of form '/root
  212. //      window/child window/.../control'.
  213. // Returns: Boolean, true if succeeded, false for buffer overflow
  214. // p1: Integer, size of the buffer
  215. // p3: String, buffer to the name to be constructed.    
  216.  
  217. R3WGM_MAKENAME = 41022;
  218.  
  219. function mR3WGM_MAKENAME(p1, p3) {
  220.   return   DoA2(this.r3obj, 41022, p1, R3TID_INTEGER, 0, p3, R3TID_STRING, 0);
  221. }
  222.  
  223. // Description: find a widget by name. Name string is of form '/root window/child window/...'.
  224. // Returns: Object, address of the widget if found, otherwise NULL.
  225. // p3: String, pointer to name string    
  226.  
  227. R3WGM_FINDBYNAME = 41023;
  228.  
  229. function mR3WGM_FINDBYNAME(p3) {
  230.   return R3ToJS(  DoA(this.r3obj, 41023, p3, R3TID_STRING, 0));
  231. }
  232.  
  233. // Description: Sent to 'drop target' widget when the user 'drops' the object.
  234. // Returns: Boolean, if true, the dropped data was succesfully handled.
  235. // p1: Object, object to be dropped. The drop target uses R3ObjectIsOfKind() to check whether it can
  236. //      receive the object to be dropped.
  237. // p3: Object, sibling widget    
  238.  
  239. R3WGM_DRAGDROPBYSIBLING = 41024;
  240.  
  241. function mR3WGM_DRAGDROPBYSIBLING(p1, p3) {
  242.   return   DoA2(this.r3obj, 41024, p1, R3TID_OBJECT, 0, p3, R3TID_OBJECT, 0);
  243. }
  244.  
  245. // Description: Gets expand flags
  246. // Returns: Boolean, combination of expand flags (see below)
  247. // p3: Integer, orientation the flags are requested for (R3WGORIENTATION_VERTICAL or R3WGORIENTATION_HORIZONTAL)    
  248.  
  249. R3WGM_GETEXPANDFLAGS = 41025;
  250.  
  251. function mR3WGM_GETEXPANDFLAGS(p3) {
  252.   return   DoA(this.r3obj, 41025, p3, R3TID_INTEGER, 0);
  253. }
  254.  
  255. // Description: find a widget by name. Name string is of form '/root window/child window/.../widget'. Only
  256. //      the last component of the name is checked for match. Therefore the widget may be
  257. //      anywhere in the gui hierarchy.
  258. // Returns: Object, address of the widget if found, otherwise NULL.
  259. // p3: String, pointer to name string    
  260.  
  261. R3WGM_FINDBYNAMEANYWHERE = 41026;
  262.  
  263. function mR3WGM_FINDBYNAMEANYWHERE(p3) {
  264.   return R3ToJS(  DoA(this.r3obj, 41026, p3, R3TID_STRING, 0));
  265. }
  266.  
  267. // Description: Begin subwindow scrolling
  268. // p1: Integer, x screen coordinate
  269. // p3: Integer, y screen coordinate    
  270.  
  271. R3WGM_RMBBEGINSCROLL = 41027;
  272.  
  273. function mR3WGM_RMBBEGINSCROLL(p1, p3) {
  274.   DoA2(this.r3obj, 41027, p1, R3TID_INTEGER, 0, p3, R3TID_INTEGER, 0);
  275. }
  276.  
  277. // Description: Scroll subwindow
  278. // p1: Integer, x screen coordinate
  279. // p3: Integer, y screen coordinate    
  280.  
  281. R3WGM_RMBSCROLL = 41028;
  282.  
  283. function mR3WGM_RMBSCROLL(p1, p3) {
  284.   DoA2(this.r3obj, 41028, p1, R3TID_INTEGER, 0, p3, R3TID_INTEGER, 0);
  285. }
  286.  
  287. // Description: End subwindow scrolling
  288. // p1: Integer, x screen coordinate
  289. // p3: Integer, y screen coordinate    
  290.  
  291. R3WGM_RMBENDSCROLL = 41029;
  292.  
  293. function mR3WGM_RMBENDSCROLL(p1, p3) {
  294.   DoA2(this.r3obj, 41029, p1, R3TID_INTEGER, 0, p3, R3TID_INTEGER, 0);
  295. }
  296.  
  297. // Description: Find out whether the widget is truely visible i.e. all the parents of the
  298. //      widget are visible.
  299. // Returns: Boolean, true if visible, FALSE if invisible
  300.  
  301. R3WGM_ISVISIBLE = 41030;
  302.  
  303. function mR3WGM_ISVISIBLE() {
  304.   return   DoA(this.r3obj, 41030, 0, R3TID_INTEGER, 0);
  305. }
  306.  
  307. // Description: Register a handler to determine where a widget can be dropped.
  308. // Returns: Boolean, true if successful
  309. // p1: Integer, clid of the widget to be dropped
  310. // p2: Object, handler
  311. // p3: Integer, handler method    
  312.  
  313. R3WGCM_REGISTERCANDROPTOHAND = 41031;
  314.  
  315. function mR3WGCM_REGISTERCANDROPTOHAND(p1, p2, p3) {
  316.   return   DoA3(this.r3obj, 41031, p1, R3TID_INTEGER, 0, p2, R3TID_OBJECT, 0, p3, R3TID_INTEGER, 0);
  317. }
  318.  
  319. // Description: The palette used has changed. The widget should recalculate any indices to the palette.
  320. // Returns: Object, TRUE
  321.  
  322. R3WGM_PALETTECHANGED = 41032;
  323.  
  324. function mR3WGM_PALETTECHANGED() {
  325.   return   DoA(this.r3obj, 41032, 0, R3TID_INTEGER, 0);
  326. }
  327.  
  328. // Description: Open context sensitive help for the gadget passed as msg.
  329. // Returns: Object, TRUE
  330. // p3: Object, gadget to open the context sensitive help for. 
  331.  
  332. R3WGM_CONTEXTSENSITIVEHELP = 41033;
  333.  
  334. function mR3WGM_CONTEXTSENSITIVEHELP(p3) {
  335.   return   DoA(this.r3obj, 41033, p3, R3TID_OBJECT, 0);
  336. }
  337.  
  338.  
  339.  
  340.  
  341. R3WGA_Parent = 41500;
  342. function SetR3WGA_Parent(value) {
  343.   R3Set(this.r3obj, R3WGA_Parent, value, R3TID_OBJECT, 0); 
  344. }
  345.  
  346. function GetR3WGA_Parent() {
  347.   return R3ToJS(R3Get(this.r3obj, R3WGA_Parent, R3TID_OBJECT, 0)); 
  348. }
  349.  
  350. R3WGA_Left = 41501;
  351. function SetR3WGA_Left(value) {
  352.   R3Set(this.r3obj, R3WGA_Left, value, R3TID_INTEGER, 0); 
  353. }
  354.  
  355. function GetR3WGA_Left() {
  356.   return R3Get(this.r3obj, R3WGA_Left, R3TID_INTEGER, 0); 
  357. }
  358.  
  359. R3WGA_Top = 41502;
  360. function SetR3WGA_Top(value) {
  361.   R3Set(this.r3obj, R3WGA_Top, value, R3TID_INTEGER, 0); 
  362. }
  363.  
  364. function GetR3WGA_Top() {
  365.   return R3Get(this.r3obj, R3WGA_Top, R3TID_INTEGER, 0); 
  366. }
  367.  
  368. R3WGA_Width = 41503;
  369. function SetR3WGA_Width(value) {
  370.   R3Set(this.r3obj, R3WGA_Width, value, R3TID_INTEGER, 0); 
  371. }
  372.  
  373. function GetR3WGA_Width() {
  374.   return R3Get(this.r3obj, R3WGA_Width, R3TID_INTEGER, 0); 
  375. }
  376.  
  377. R3WGA_Height = 41504;
  378. function SetR3WGA_Height(value) {
  379.   R3Set(this.r3obj, R3WGA_Height, value, R3TID_INTEGER, 0); 
  380. }
  381.  
  382. function GetR3WGA_Height() {
  383.   return R3Get(this.r3obj, R3WGA_Height, R3TID_INTEGER, 0); 
  384. }
  385.  
  386. R3WGA_MinWidth = 41505;
  387. function SetR3WGA_MinWidth(value) {
  388.   R3Set(this.r3obj, R3WGA_MinWidth, value, R3TID_INTEGER, 0); 
  389. }
  390.  
  391. function GetR3WGA_MinWidth() {
  392.   return R3Get(this.r3obj, R3WGA_MinWidth, R3TID_INTEGER, 0); 
  393. }
  394.  
  395. R3WGA_MinHeight = 41506;
  396. function SetR3WGA_MinHeight(value) {
  397.   R3Set(this.r3obj, R3WGA_MinHeight, value, R3TID_INTEGER, 0); 
  398. }
  399.  
  400. function GetR3WGA_MinHeight() {
  401.   return R3Get(this.r3obj, R3WGA_MinHeight, R3TID_INTEGER, 0); 
  402. }
  403.  
  404. R3WGA_RecommendedMinWidth = 41507;
  405. function SetR3WGA_RecommendedMinWidth(value) {
  406.   R3Set(this.r3obj, R3WGA_RecommendedMinWidth, value, R3TID_INTEGER, 0); 
  407. }
  408.  
  409. function GetR3WGA_RecommendedMinWidth() {
  410.   return R3Get(this.r3obj, R3WGA_RecommendedMinWidth, R3TID_INTEGER, 0); 
  411. }
  412.  
  413. R3WGA_RecommendedMinHeight = 41508;
  414. function SetR3WGA_RecommendedMinHeight(value) {
  415.   R3Set(this.r3obj, R3WGA_RecommendedMinHeight, value, R3TID_INTEGER, 0); 
  416. }
  417.  
  418. function GetR3WGA_RecommendedMinHeight() {
  419.   return R3Get(this.r3obj, R3WGA_RecommendedMinHeight, R3TID_INTEGER, 0); 
  420. }
  421.  
  422. R3WGA_AlignX = 41509;
  423. function SetR3WGA_AlignX(value) {
  424.   R3Set(this.r3obj, R3WGA_AlignX, value, R3TID_INTEGER, 0); 
  425. }
  426.  
  427. function GetR3WGA_AlignX() {
  428.   return R3Get(this.r3obj, R3WGA_AlignX, R3TID_INTEGER, 0); 
  429. }
  430.  
  431. R3WGA_AlignY = 41510;
  432. function SetR3WGA_AlignY(value) {
  433.   R3Set(this.r3obj, R3WGA_AlignY, value, R3TID_INTEGER, 0); 
  434. }
  435.  
  436. function GetR3WGA_AlignY() {
  437.   return R3Get(this.r3obj, R3WGA_AlignY, R3TID_INTEGER, 0); 
  438. }
  439.  
  440. R3WGA_Visible = 41511;
  441. function SetR3WGA_Visible(value) {
  442.   R3Set(this.r3obj, R3WGA_Visible, value, R3TID_INTEGER, 0); 
  443. }
  444.  
  445. function GetR3WGA_Visible() {
  446.   return R3Get(this.r3obj, R3WGA_Visible, R3TID_INTEGER, 0); 
  447. }
  448.  
  449. R3WGA_UserData = 41512;
  450. function SetR3WGA_UserData(value) {
  451.   R3Set(this.r3obj, R3WGA_UserData, value, R3TID_OBJECT, 0); 
  452. }
  453.  
  454. function GetR3WGA_UserData() {
  455.   return R3ToJS(R3Get(this.r3obj, R3WGA_UserData, R3TID_OBJECT, 0)); 
  456. }
  457.  
  458. R3WGA_Font = 41513;
  459. function SetR3WGA_Font(value) {
  460.   R3Set(this.r3obj, R3WGA_Font, value, R3TID_OBJECT, 0); 
  461. }
  462.  
  463. function GetR3WGA_Font() {
  464.   return R3ToJS(R3Get(this.r3obj, R3WGA_Font, R3TID_OBJECT, 0)); 
  465. }
  466.  
  467. var R3WGA_MapToObj = 41514; // Object
  468. var R3WGA_MapFromTag = 41515; // Integer
  469. var R3WGA_MapToTag = 41516; // Integer
  470. var R3WGA_MapToMethod = 41517; // Integer
  471. R3WGA_ModelTag = 41519;
  472. function SetR3WGA_ModelTag(value) {
  473.   R3Set(this.r3obj, R3WGA_ModelTag, value, R3TID_INTEGER, 0); 
  474. }
  475.  
  476. R3WGA_ModelMethod = 41520;
  477. function SetR3WGA_ModelMethod(value) {
  478.   R3Set(this.r3obj, R3WGA_ModelMethod, value, R3TID_INTEGER, 0); 
  479. }
  480.  
  481. R3WGA_FrameWidth = 41521;
  482. function SetR3WGA_FrameWidth(value) {
  483.   R3Set(this.r3obj, R3WGA_FrameWidth, value, R3TID_INTEGER, 0); 
  484. }
  485.  
  486. function GetR3WGA_FrameWidth() {
  487.   return R3Get(this.r3obj, R3WGA_FrameWidth, R3TID_INTEGER, 0); 
  488. }
  489.  
  490. R3WGA_FrameWidthLeft = 41522;
  491. function SetR3WGA_FrameWidthLeft(value) {
  492.   R3Set(this.r3obj, R3WGA_FrameWidthLeft, value, R3TID_INTEGER, 0); 
  493. }
  494.  
  495. function GetR3WGA_FrameWidthLeft() {
  496.   return R3Get(this.r3obj, R3WGA_FrameWidthLeft, R3TID_INTEGER, 0); 
  497. }
  498.  
  499. R3WGA_FrameWidthTop = 41523;
  500. function SetR3WGA_FrameWidthTop(value) {
  501.   R3Set(this.r3obj, R3WGA_FrameWidthTop, value, R3TID_INTEGER, 0); 
  502. }
  503.  
  504. function GetR3WGA_FrameWidthTop() {
  505.   return R3Get(this.r3obj, R3WGA_FrameWidthTop, R3TID_INTEGER, 0); 
  506. }
  507.  
  508. R3WGA_FrameWidthRight = 41524;
  509. function SetR3WGA_FrameWidthRight(value) {
  510.   R3Set(this.r3obj, R3WGA_FrameWidthRight, value, R3TID_INTEGER, 0); 
  511. }
  512.  
  513. function GetR3WGA_FrameWidthRight() {
  514.   return R3Get(this.r3obj, R3WGA_FrameWidthRight, R3TID_INTEGER, 0); 
  515. }
  516.  
  517. R3WGA_FrameWidthBottom = 41525;
  518. function SetR3WGA_FrameWidthBottom(value) {
  519.   R3Set(this.r3obj, R3WGA_FrameWidthBottom, value, R3TID_INTEGER, 0); 
  520. }
  521.  
  522. function GetR3WGA_FrameWidthBottom() {
  523.   return R3Get(this.r3obj, R3WGA_FrameWidthBottom, R3TID_INTEGER, 0); 
  524. }
  525.  
  526. R3WGA_SetOnChildren = 41526;
  527. function GetR3WGA_SetOnChildren() {
  528.   return R3Get(this.r3obj, R3WGA_SetOnChildren, R3TID_BOOLEAN, 0); 
  529. }
  530.  
  531. R3WGA_Cursor = 41527;
  532. function GetR3WGA_Cursor() {
  533.   return R3ToJS(R3Get(this.r3obj, R3WGA_Cursor, R3TID_OBJECT, 0)); 
  534. }
  535.  
  536. R3WGA_MsgPort = 41528;
  537. function SetR3WGA_MsgPort(value) {
  538.   R3Set(this.r3obj, R3WGA_MsgPort, value, R3TID_OBJECT, 0); 
  539. }
  540.  
  541. function GetR3WGA_MsgPort() {
  542.   return R3ToJS(R3Get(this.r3obj, R3WGA_MsgPort, R3TID_OBJECT, 0)); 
  543. }
  544.  
  545. R3WGA_Menu = 41529;
  546. function SetR3WGA_Menu(value) {
  547.   R3Set(this.r3obj, R3WGA_Menu, value, R3TID_OBJECT, 0); 
  548. }
  549.  
  550. function GetR3WGA_Menu() {
  551.   return R3ToJS(R3Get(this.r3obj, R3WGA_Menu, R3TID_OBJECT, 0)); 
  552. }
  553.  
  554. R3WGA_AllParentsVisible = 41530;
  555. function GetR3WGA_AllParentsVisible() {
  556.   return R3Get(this.r3obj, R3WGA_AllParentsVisible, R3TID_BOOLEAN, 0); 
  557. }
  558.  
  559. R3WGA_DragSourceObj = 41531;
  560. function SetR3WGA_DragSourceObj(value) {
  561.   R3Set(this.r3obj, R3WGA_DragSourceObj, value, R3TID_OBJECT, 0); 
  562. }
  563.  
  564. function GetR3WGA_DragSourceObj() {
  565.   return R3ToJS(R3Get(this.r3obj, R3WGA_DragSourceObj, R3TID_OBJECT, 0)); 
  566. }
  567.  
  568. R3WGA_DragSourceMth = 41532;
  569. function SetR3WGA_DragSourceMth(value) {
  570.   R3Set(this.r3obj, R3WGA_DragSourceMth, value, R3TID_INTEGER, 0); 
  571. }
  572.  
  573. function GetR3WGA_DragSourceMth() {
  574.   return R3Get(this.r3obj, R3WGA_DragSourceMth, R3TID_INTEGER, 0); 
  575. }
  576.  
  577. R3WGA_DragSourceData = 41533;
  578. function SetR3WGA_DragSourceData(value) {
  579.   R3Set(this.r3obj, R3WGA_DragSourceData, value, R3TID_OBJECT, 0); 
  580. }
  581.  
  582. function GetR3WGA_DragSourceData() {
  583.   return R3ToJS(R3Get(this.r3obj, R3WGA_DragSourceData, R3TID_OBJECT, 0)); 
  584. }
  585.  
  586. R3WGA_DropTargetObj = 41534;
  587. function SetR3WGA_DropTargetObj(value) {
  588.   R3Set(this.r3obj, R3WGA_DropTargetObj, value, R3TID_OBJECT, 0); 
  589. }
  590.  
  591. function GetR3WGA_DropTargetObj() {
  592.   return R3ToJS(R3Get(this.r3obj, R3WGA_DropTargetObj, R3TID_OBJECT, 0)); 
  593. }
  594.  
  595. R3WGA_CanDropMth = 41535;
  596. function SetR3WGA_CanDropMth(value) {
  597.   R3Set(this.r3obj, R3WGA_CanDropMth, value, R3TID_INTEGER, 0); 
  598. }
  599.  
  600. function GetR3WGA_CanDropMth() {
  601.   return R3Get(this.r3obj, R3WGA_CanDropMth, R3TID_INTEGER, 0); 
  602. }
  603.  
  604. R3WGA_DropMth = 41536;
  605. function SetR3WGA_DropMth(value) {
  606.   R3Set(this.r3obj, R3WGA_DropMth, value, R3TID_INTEGER, 0); 
  607. }
  608.  
  609. function GetR3WGA_DropMth() {
  610.   return R3Get(this.r3obj, R3WGA_DropMth, R3TID_INTEGER, 0); 
  611. }
  612.  
  613. R3WGA_DropTargetData = 41537;
  614. function SetR3WGA_DropTargetData(value) {
  615.   R3Set(this.r3obj, R3WGA_DropTargetData, value, R3TID_OBJECT, 0); 
  616. }
  617.  
  618. function GetR3WGA_DropTargetData() {
  619.   return R3ToJS(R3Get(this.r3obj, R3WGA_DropTargetData, R3TID_OBJECT, 0)); 
  620. }
  621.  
  622. R3WGA_Children = 41538;
  623. function GetR3WGA_Children() {
  624.   return R3Get(this.r3obj, R3WGA_Children, R3TID_LIST, R3TNF_ARRAY); 
  625. }
  626.  
  627. R3WGA_Extension = 41539;
  628. function SetR3WGA_Extension(value) {
  629.   R3Set(this.r3obj, R3WGA_Extension, value, R3TID_OBJECT, 0); 
  630. }
  631.  
  632. function GetR3WGA_Extension() {
  633.   return R3ToJS(R3Get(this.r3obj, R3WGA_Extension, R3TID_OBJECT, 0)); 
  634. }
  635.  
  636. R3WGA_DragSourceCancelMth = 41541;
  637. function SetR3WGA_DragSourceCancelMth(value) {
  638.   R3Set(this.r3obj, R3WGA_DragSourceCancelMth, value, R3TID_INTEGER, 0); 
  639. }
  640.  
  641. function GetR3WGA_DragSourceCancelMth() {
  642.   return R3Get(this.r3obj, R3WGA_DragSourceCancelMth, R3TID_INTEGER, 0); 
  643. }
  644.  
  645. R3WGA_DragSourceEndMth = 41542;
  646. function SetR3WGA_DragSourceEndMth(value) {
  647.   R3Set(this.r3obj, R3WGA_DragSourceEndMth, value, R3TID_INTEGER, 0); 
  648. }
  649.  
  650. function GetR3WGA_DragSourceEndMth() {
  651.   return R3Get(this.r3obj, R3WGA_DragSourceEndMth, R3TID_INTEGER, 0); 
  652. }
  653.  
  654. R3WGA_Manager = 41543;
  655. function SetR3WGA_Manager(value) {
  656.   R3Set(this.r3obj, R3WGA_Manager, value, R3TID_OBJECT, 0); 
  657. }
  658.  
  659. function GetR3WGA_Manager() {
  660.   return R3ToJS(R3Get(this.r3obj, R3WGA_Manager, R3TID_OBJECT, 0)); 
  661. }
  662.  
  663. R3WGA_Realized = 41544;
  664. function GetR3WGA_Realized() {
  665.   return R3Get(this.r3obj, R3WGA_Realized, R3TID_BOOLEAN, 0); 
  666. }
  667.  
  668. R3WGA_DropBySiblingMth = 41545;
  669. function SetR3WGA_DropBySiblingMth(value) {
  670.   R3Set(this.r3obj, R3WGA_DropBySiblingMth, value, R3TID_INTEGER, 0); 
  671. }
  672.  
  673. function GetR3WGA_DropBySiblingMth() {
  674.   return R3Get(this.r3obj, R3WGA_DropBySiblingMth, R3TID_INTEGER, 0); 
  675. }
  676.  
  677. R3WGA_Orientation = 41546;
  678. function SetR3WGA_Orientation(value) {
  679.   R3Set(this.r3obj, R3WGA_Orientation, value, R3TID_INTEGER, 0); 
  680. }
  681.  
  682. function GetR3WGA_Orientation() {
  683.   return R3Get(this.r3obj, R3WGA_Orientation, R3TID_INTEGER, 0); 
  684. }
  685.  
  686. R3WGA_ExpandX = 41547;
  687. function SetR3WGA_ExpandX(value) {
  688.   R3Set(this.r3obj, R3WGA_ExpandX, value, R3TID_INTEGER, 0); 
  689. }
  690.  
  691. function GetR3WGA_ExpandX() {
  692.   return R3Get(this.r3obj, R3WGA_ExpandX, R3TID_INTEGER, 0); 
  693. }
  694.  
  695. R3WGA_ExpandY = 41548;
  696. function SetR3WGA_ExpandY(value) {
  697.   R3Set(this.r3obj, R3WGA_ExpandY, value, R3TID_INTEGER, 0); 
  698. }
  699.  
  700. function GetR3WGA_ExpandY() {
  701.   return R3Get(this.r3obj, R3WGA_ExpandY, R3TID_INTEGER, 0); 
  702. }
  703.  
  704. R3WGA_AutoOrientate = 41549;
  705. function SetR3WGA_AutoOrientate(value) {
  706.   R3Set(this.r3obj, R3WGA_AutoOrientate, value, R3TID_INTEGER, 0); 
  707. }
  708.  
  709. function GetR3WGA_AutoOrientate() {
  710.   return R3Get(this.r3obj, R3WGA_AutoOrientate, R3TID_INTEGER, 0); 
  711. }
  712.  
  713. R3WGA_OffsetX = 41550;
  714. function SetR3WGA_OffsetX(value) {
  715.   R3Set(this.r3obj, R3WGA_OffsetX, value, R3TID_INTEGER, 0); 
  716. }
  717.  
  718. function GetR3WGA_OffsetX() {
  719.   return R3Get(this.r3obj, R3WGA_OffsetX, R3TID_INTEGER, 0); 
  720. }
  721.  
  722. R3WGA_OffsetY = 41551;
  723. function SetR3WGA_OffsetY(value) {
  724.   R3Set(this.r3obj, R3WGA_OffsetY, value, R3TID_INTEGER, 0); 
  725. }
  726.  
  727. function GetR3WGA_OffsetY() {
  728.   return R3Get(this.r3obj, R3WGA_OffsetY, R3TID_INTEGER, 0); 
  729. }
  730.  
  731. R3WGA_ModelIndex = 41553;
  732. function SetR3WGA_ModelIndex(value) {
  733.   R3Set(this.r3obj, R3WGA_ModelIndex, value, R3TID_INTEGER, 0); 
  734. }
  735.  
  736. R3WGA_FitCode = 41555;
  737. function SetR3WGA_FitCode(value) {
  738.   R3Set(this.r3obj, R3WGA_FitCode, value, R3TID_INTEGER, 0); 
  739. }
  740.  
  741. function GetR3WGA_FitCode() {
  742.   return R3Get(this.r3obj, R3WGA_FitCode, R3TID_INTEGER, 0); 
  743. }
  744.  
  745. R3WGA_DynamicExpandX = 41556;
  746. function SetR3WGA_DynamicExpandX(value) {
  747.   R3Set(this.r3obj, R3WGA_DynamicExpandX, value, R3TID_INTEGER, 0); 
  748. }
  749.  
  750. function GetR3WGA_DynamicExpandX() {
  751.   return R3Get(this.r3obj, R3WGA_DynamicExpandX, R3TID_INTEGER, 0); 
  752. }
  753.  
  754. R3WGA_DynamicExpandY = 41557;
  755. function SetR3WGA_DynamicExpandY(value) {
  756.   R3Set(this.r3obj, R3WGA_DynamicExpandY, value, R3TID_INTEGER, 0); 
  757. }
  758.  
  759. function GetR3WGA_DynamicExpandY() {
  760.   return R3Get(this.r3obj, R3WGA_DynamicExpandY, R3TID_INTEGER, 0); 
  761. }
  762.  
  763. R3WGA_HelpURL = 41558;
  764. function SetR3WGA_HelpURL(value) {
  765.   R3Set(this.r3obj, R3WGA_HelpURL, value, R3TID_STRING, 0); 
  766. }
  767.  
  768. function GetR3WGA_HelpURL() {
  769.   return R3Get(this.r3obj, R3WGA_HelpURL, R3TID_STRING, 0); 
  770. }
  771.  
  772. R3WGA_AlignXOffset = 41559;
  773. function SetR3WGA_AlignXOffset(value) {
  774.   R3Set(this.r3obj, R3WGA_AlignXOffset, value, R3TID_INTEGER, 0); 
  775. }
  776.  
  777. R3WGA_AlignYOffset = 41560;
  778. function SetR3WGA_AlignYOffset(value) {
  779.   R3Set(this.r3obj, R3WGA_AlignYOffset, value, R3TID_INTEGER, 0); 
  780. }
  781.  
  782. var R3WGMAPTYPE_VALUE = 0;
  783. var R3WGMAPTYPE_EVENT = 1;
  784. var R3WGORIENTATION_VERTICAL = 0;
  785. var R3WGORIENTATION_HORIZONTAL = 1;
  786. var R3WFP_BESTFIT = 0;
  787. var R3WFP_LARGESTFIT = 1;
  788. var R3WFP_BESTWIDTH = 2;
  789. var R3WFP_BESTHEIGHT = 3;
  790. var R3WFP_BYFITCODE = 4;
  791. var R3WGEXPAND_WIDTH = 1;
  792. var R3WGEXPAND_HEIGHT = 2;
  793.  
  794.  
  795. function r3Widget () { 
  796.    this.base = r3God;
  797.    if(arguments.length) {
  798.       this.base(R3CLID_WIDGET, arguments);
  799.    }
  800.    // Methods
  801.    this.REFRESH=mR3WGM_REFRESH;
  802.    this.MAPCHANGES=mR3WGM_MAPCHANGES;
  803.    this.UNMAPCHANGES=mR3WGM_UNMAPCHANGES;
  804.    this.DOMAP=mR3WGM_DOMAP;
  805.    this.ADDCHILDREN=mR3WGM_ADDCHILDREN;
  806.    this.REMCHILDREN=mR3WGM_REMCHILDREN;
  807.    this.REALIZE=mR3WGM_REALIZE;
  808.    this.WINDOWTOSCREEN=mR3WGM_WINDOWTOSCREEN;
  809.    this.SCREENTOWINDOW=mR3WGM_SCREENTOWINDOW;
  810.    this.FIT=mR3WGM_FIT;
  811.    this.SETFOCUS=mR3WGM_SETFOCUS;
  812.    this.RESTOREFOCUS=mR3WGM_RESTOREFOCUS;
  813.    this.PASSEVENTUP=mR3WGM_PASSEVENTUP;
  814.    this.DRAGSTART=mR3WGM_DRAGSTART;
  815.    this.DRAGDROP=mR3WGM_DRAGDROP;
  816.    this.CANDROP=mR3WGM_CANDROP;
  817.    this.DRAGEND=mR3WGM_DRAGEND;
  818.    this.DRAGCANCEL=mR3WGM_DRAGCANCEL;
  819.    this.DETACH=mR3WGM_DETACH;
  820.    this.MOVETOFRONT=mR3WGM_MOVETOFRONT;
  821.    this.MOVETOBACK=mR3WGM_MOVETOBACK;
  822.    this.MAKENAME=mR3WGM_MAKENAME;
  823.    this.FINDBYNAME=mR3WGM_FINDBYNAME;
  824.    this.DRAGDROPBYSIBLING=mR3WGM_DRAGDROPBYSIBLING;
  825.    this.GETEXPANDFLAGS=mR3WGM_GETEXPANDFLAGS;
  826.    this.FINDBYNAMEANYWHERE=mR3WGM_FINDBYNAMEANYWHERE;
  827.    this.RMBBEGINSCROLL=mR3WGM_RMBBEGINSCROLL;
  828.    this.RMBSCROLL=mR3WGM_RMBSCROLL;
  829.    this.RMBENDSCROLL=mR3WGM_RMBENDSCROLL;
  830.    this.ISVISIBLE=mR3WGM_ISVISIBLE;
  831.    this.REGISTERCANDROPTOHAND=mR3WGCM_REGISTERCANDROPTOHAND;
  832.    this.PALETTECHANGED=mR3WGM_PALETTECHANGED;
  833.    this.CONTEXTSENSITIVEHELP=mR3WGM_CONTEXTSENSITIVEHELP;
  834.  
  835.    // Attributes
  836.    this.GetParent=GetR3WGA_Parent;
  837.    this.SetParent=SetR3WGA_Parent;
  838.    this.GetLeft=GetR3WGA_Left;
  839.    this.SetLeft=SetR3WGA_Left;
  840.    this.GetTop=GetR3WGA_Top;
  841.    this.SetTop=SetR3WGA_Top;
  842.    this.GetWidth=GetR3WGA_Width;
  843.    this.SetWidth=SetR3WGA_Width;
  844.    this.GetHeight=GetR3WGA_Height;
  845.    this.SetHeight=SetR3WGA_Height;
  846.    this.GetMinWidth=GetR3WGA_MinWidth;
  847.    this.SetMinWidth=SetR3WGA_MinWidth;
  848.    this.GetMinHeight=GetR3WGA_MinHeight;
  849.    this.SetMinHeight=SetR3WGA_MinHeight;
  850.    this.GetRecommendedMinWidth=GetR3WGA_RecommendedMinWidth;
  851.    this.SetRecommendedMinWidth=SetR3WGA_RecommendedMinWidth;
  852.    this.GetRecommendedMinHeight=GetR3WGA_RecommendedMinHeight;
  853.    this.SetRecommendedMinHeight=SetR3WGA_RecommendedMinHeight;
  854.    this.GetAlignX=GetR3WGA_AlignX;
  855.    this.SetAlignX=SetR3WGA_AlignX;
  856.    this.GetAlignY=GetR3WGA_AlignY;
  857.    this.SetAlignY=SetR3WGA_AlignY;
  858.    this.GetVisible=GetR3WGA_Visible;
  859.    this.SetVisible=SetR3WGA_Visible;
  860.    this.GetUserData=GetR3WGA_UserData;
  861.    this.SetUserData=SetR3WGA_UserData;
  862.    this.GetFont=GetR3WGA_Font;
  863.    this.SetFont=SetR3WGA_Font;
  864.    this.SetModelTag=SetR3WGA_ModelTag;
  865.    this.SetModelMethod=SetR3WGA_ModelMethod;
  866.    this.GetFrameWidth=GetR3WGA_FrameWidth;
  867.    this.SetFrameWidth=SetR3WGA_FrameWidth;
  868.    this.GetFrameWidthLeft=GetR3WGA_FrameWidthLeft;
  869.    this.SetFrameWidthLeft=SetR3WGA_FrameWidthLeft;
  870.    this.GetFrameWidthTop=GetR3WGA_FrameWidthTop;
  871.    this.SetFrameWidthTop=SetR3WGA_FrameWidthTop;
  872.    this.GetFrameWidthRight=GetR3WGA_FrameWidthRight;
  873.    this.SetFrameWidthRight=SetR3WGA_FrameWidthRight;
  874.    this.GetFrameWidthBottom=GetR3WGA_FrameWidthBottom;
  875.    this.SetFrameWidthBottom=SetR3WGA_FrameWidthBottom;
  876.    this.GetSetOnChildren=GetR3WGA_SetOnChildren;
  877.    this.GetCursor=GetR3WGA_Cursor;
  878.    this.GetMsgPort=GetR3WGA_MsgPort;
  879.    this.SetMsgPort=SetR3WGA_MsgPort;
  880.    this.GetMenu=GetR3WGA_Menu;
  881.    this.SetMenu=SetR3WGA_Menu;
  882.    this.GetAllParentsVisible=GetR3WGA_AllParentsVisible;
  883.    this.GetDragSourceObj=GetR3WGA_DragSourceObj;
  884.    this.SetDragSourceObj=SetR3WGA_DragSourceObj;
  885.    this.GetDragSourceMth=GetR3WGA_DragSourceMth;
  886.    this.SetDragSourceMth=SetR3WGA_DragSourceMth;
  887.    this.GetDragSourceData=GetR3WGA_DragSourceData;
  888.    this.SetDragSourceData=SetR3WGA_DragSourceData;
  889.    this.GetDropTargetObj=GetR3WGA_DropTargetObj;
  890.    this.SetDropTargetObj=SetR3WGA_DropTargetObj;
  891.    this.GetCanDropMth=GetR3WGA_CanDropMth;
  892.    this.SetCanDropMth=SetR3WGA_CanDropMth;
  893.    this.GetDropMth=GetR3WGA_DropMth;
  894.    this.SetDropMth=SetR3WGA_DropMth;
  895.    this.GetDropTargetData=GetR3WGA_DropTargetData;
  896.    this.SetDropTargetData=SetR3WGA_DropTargetData;
  897.    this.GetChildren=GetR3WGA_Children;
  898.    this.GetExtension=GetR3WGA_Extension;
  899.    this.SetExtension=SetR3WGA_Extension;
  900.    this.GetDragSourceCancelMth=GetR3WGA_DragSourceCancelMth;
  901.    this.SetDragSourceCancelMth=SetR3WGA_DragSourceCancelMth;
  902.    this.GetDragSourceEndMth=GetR3WGA_DragSourceEndMth;
  903.    this.SetDragSourceEndMth=SetR3WGA_DragSourceEndMth;
  904.    this.GetManager=GetR3WGA_Manager;
  905.    this.SetManager=SetR3WGA_Manager;
  906.    this.GetRealized=GetR3WGA_Realized;
  907.    this.GetDropBySiblingMth=GetR3WGA_DropBySiblingMth;
  908.    this.SetDropBySiblingMth=SetR3WGA_DropBySiblingMth;
  909.    this.GetOrientation=GetR3WGA_Orientation;
  910.    this.SetOrientation=SetR3WGA_Orientation;
  911.    this.GetExpandX=GetR3WGA_ExpandX;
  912.    this.SetExpandX=SetR3WGA_ExpandX;
  913.    this.GetExpandY=GetR3WGA_ExpandY;
  914.    this.SetExpandY=SetR3WGA_ExpandY;
  915.    this.GetAutoOrientate=GetR3WGA_AutoOrientate;
  916.    this.SetAutoOrientate=SetR3WGA_AutoOrientate;
  917.    this.GetOffsetX=GetR3WGA_OffsetX;
  918.    this.SetOffsetX=SetR3WGA_OffsetX;
  919.    this.GetOffsetY=GetR3WGA_OffsetY;
  920.    this.SetOffsetY=SetR3WGA_OffsetY;
  921.    this.SetModelIndex=SetR3WGA_ModelIndex;
  922.    this.GetFitCode=GetR3WGA_FitCode;
  923.    this.SetFitCode=SetR3WGA_FitCode;
  924.    this.GetDynamicExpandX=GetR3WGA_DynamicExpandX;
  925.    this.SetDynamicExpandX=SetR3WGA_DynamicExpandX;
  926.    this.GetDynamicExpandY=GetR3WGA_DynamicExpandY;
  927.    this.SetDynamicExpandY=SetR3WGA_DynamicExpandY;
  928.    this.GetHelpURL=GetR3WGA_HelpURL;
  929.    this.SetHelpURL=SetR3WGA_HelpURL;
  930.    this.SetAlignXOffset=SetR3WGA_AlignXOffset;
  931.    this.SetAlignYOffset=SetR3WGA_AlignYOffset;
  932. }
  933.  
  934. r3Widget.prototype=new r3Root;
  935. // r3widget.h_H